package com.hyh.search.Mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hyh.search.domain.Complex.ProductComplex;
import com.hyh.search.domain.Product;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ProductMapper extends BaseMapper<Product> {
    @Select("select p.*,s.type from product p ,sort s WHERE s.id=p.sort")
    public List<ProductComplex> selectProductAll();
}
